
/**
 * This file is part of the Phalcon Framework.
 *
 * (c) Phalcon Team <team@phalconphp.com>
 *
 * For the full copyright and license information, please view the LICENSE.txt
 * file that was distributed with this source code.
 */

namespace Phalcon\Forms\Element;

use Phalcon\Tag;
use Phalcon\Forms\Element;

/**
 * Phalcon\Forms\Element\Email
 *
 * Component INPUT[type=email] for forms
 */
class Email extends Element
{

	/**
	 * Renders the element widget returning html
	 */
	public function render(array attributes = []) -> string
	{
		return Tag::emailField(this->prepareAttributes(attributes));
	}
}
